﻿
@{
    ViewBag.Title = "About32r3";
    ViewBag.Message = "What's wrong!";
    var teset = 0;
    if (teset > 10)
    {
        teset = 999;
    }
    else
    {
        teset = -999;
    }
}
<h2>@ViewBag.Title.</h2>
<h3>@ViewBag.Message</h3>

@{ 
    for (int i = 0; i < 10; i++)
    {
        <h>@i</h>
    }
}
<hr />

@if (true)
{
    // 第一种方式
    <p>    </p>
        @: 结束 @DateTime.Now.ToString()

    // 第二种方式
    <p></p>
        <text>结束 @DateTime.Now.ToString()</text>
}
<hr />
<p>Use this area to provide additional information.</p>
<p>@teset 小于10</p>

<ul>
    @for (int i = 0; i < 10; i++)
    {
    <li>@i</li>
    }
</ul>

<table border="1">
    <tr>
        <th width="100px">Name</th>
        <td width="100px">Value</td>
    </tr>
    <tr>
        <td>Day</td>
        <td>@DateTime.Now.Day</td>
    </tr>
    <tr>
        <td>Hour</td>
        <td>@DateTime.Now.Hour</td>
    </tr>
    <tr>
        <td>Minute</td>
        <td>@DateTime.Now.Minute</td>
    </tr>
    <tr>
        <td>Second</td>
        <td>@DateTime.Now.Second</td>
    </tr>
</table>

@{
    var txt = "";
    if (DateTime.Now.Hour > 12)
    { txt = "Good Evening"; }
    else
    { txt = "Good Morning"; }
}

<p>the info is @txt.</p>

<ul>
    @foreach (var x in Request.ServerVariables)
    {
<li>@x</li>}
</ul>
